
#define NSAMPLES 7

uniform sampler2DRect scene;
uniform float weight[7];
varying vec2 texCoord[7];

void main ()
{
	vec4 c;
	for (int i=0;i<NSAMPLES;i++)
	{
		c+=texture2DRect(scene, texCoord[i].st) * weight[i];
	}
	gl_FragColor = c;// vec4(c.a, c.a,c.a,c.a);
}